﻿using UnityEngine.UIElements;
using winS.Unity.Process;

namespace winS.UnityEditor.ProcessEditor
{
    [Title("控制台消息", "Console Message"), StepNodeSearchTreeGroup("内置/控制台消息")]
    public class DebugStepNode : GeneralStepNode<DebugStep>
    {
        protected internal override void OnCreated()
        {
            Add(CreateMessageEield());
        }

        private VisualElement CreateMessageEield()
        {
            return guiFactory.CreateTextField("调试信息:", step.message, newValue => step.message = newValue);
        }
    }
}